<?php
/* @var $this GiaitriController */
/* @var $model Giaitri */
/* @var $form CActiveForm */
?>

<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'giaitri-_giaitri-form',
        // Please note: When you enable ajax validation, make sure the corresponding
        // controller action is handling ajax validation correctly.
        // See class documentation of CActiveForm for details on this,
        // you need to use the performAjaxValidation()-method described there.
        'enableAjaxValidation' => false,
        'htmlOptions' => array('enctype' => 'multipart/form-data'),
    ));
    ?>



    <?php echo $form->errorSummary($model); ?>

    <div class="clear"></div>
    <div class="form_left">
        <?php echo $form->labelEx($model, 'ten'); ?>
    </div>
    <div class="form_right">
        <?php echo $form->textField($model, 'ten', array('size' => 50, 'maxlength' => 50, 'required' => 'required')); ?>
        <?php echo $form->error($model, 'ten'); ?>
    </div>

    <div class="clear"></div>
    <div class="form_left">
        <?php echo $form->labelEx($model, 'logo'); ?>
    </div>
    <div class="form_right">
        <?php echo $form->fileField($model, 'logo', array('size' => 40, 'maxlength' => 50)); ?>
        <?php echo $form->error($model, 'logo'); ?>
    </div>



    <div class="clear"></div>
    <div class="form_left">
        <?php echo $form->labelEx($model, 'url'); ?>
    </div>
    <div class="form_right">
        <?php echo $form->textField($model, 'url', array('size' => 60, 'maxlength' => 200, 'required' => 'required')); ?>
        <?php echo $form->error($model, 'url'); ?>
    </div>
    <div class="clear"></div>
    <div class="form_left">
        <?php echo $form->labelEx($model, 'flag'); ?>
    </div>
    <div class="form_right">
         <?php echo $form->dropDownList($model, 'flag', array('0' => 'Đang ẩn', '1' => 'Đang hiện')); ?>
 
        <?php echo $form->error($model, 'flag'); ?>
    </div>

    <div class="clear"></div>
    <div class="form_left">.</div>
    <div class="form_right">
        <?php echo CHtml::submitButton('Cập nhật'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->